﻿
using System;
using System.Collections;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using BaseClasses;
using BaseClasses.Utils;
using BaseClasses.Web.UI;
using BaseClasses.Web.UI.WebControls;
        
using BUGLOG.Business;
using BUGLOG.Data;
        
namespace BUGLOG.UI
{

  // Code-behind class for the Menu user control.
       
partial class Menu : BaseApplicationMenuControl , IMenu
{
		

#region "Section 1: Place your customizations here."    

        public Menu()
        {
            this.Initialize();
        }

        public void LoadData()
        {
            // LoadData reads database data and assigns it to UI controls.
            // Customize by adding code before or after the call to LoadData_Base()
            // or replace the call to LoadData_Base().
            LoadData_Base();
         }

#region "Ajax Functions"

        
        [System.Web.Services.WebMethod()]
        public static Object[] GetRecordFieldValue(String tableName , 
                                                    String recordID , 
                                                    String columnName, 
                                                    String title, 
                                                    bool persist, 
                                                    int popupWindowHeight, 
                                                    int popupWindowWidth, 
                                                    bool popupWindowScrollBar)
        {
            // GetRecordFieldValue gets the pop up window content from the column specified by
            // columnName in the record specified by the recordID in data base table specified by tableName.
            // Customize by adding code before or after the call to  GetRecordFieldValue_Base()
            // or replace the call to  GetRecordFieldValue_Base().

            return GetRecordFieldValue_Base(tableName, recordID, columnName, title, persist, popupWindowHeight, popupWindowWidth, popupWindowScrollBar);
        }

    
        [System.Web.Services.WebMethod()]
        public static object[] GetImage(String tableName,
      
                                        String recordID, 
                                        String columnName, 
                                        String title, 
                                        bool persist, 
                                        int popupWindowHeight, 
                                        int popupWindowWidth, 
                                        bool popupWindowScrollBar)
        {
            // GetImage gets the Image url for the image in the column "columnName" and
            // in the record specified by recordID in data base table specified by tableName.
            // Customize by adding code before or after the call to  GetImage_Base()
            // or replace the call to  GetImage_Base().
            return GetImage_Base(tableName, recordID, columnName, title, persist, popupWindowHeight, popupWindowWidth, popupWindowScrollBar);
        }
        
    
#endregion

    // Page Event Handlers - buttons, sort, links
    
              public void BugsSummaryMenuItem_Click(object sender, EventArgs args)
              {
            
          // Click handler for BugsSummaryMenuItem.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          BugsSummaryMenuItem_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void BugsSummaryMenuItemHilited_Click(object sender, EventArgs args)
              {
            
          // Click handler for BugsSummaryMenuItemHilited.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          BugsSummaryMenuItemHilited_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void PriorityLevelMenuItem_Click(object sender, EventArgs args)
              {
            
          // Click handler for PriorityLevelMenuItem.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          PriorityLevelMenuItem_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void PriorityLevelMenuItemHilited_Click(object sender, EventArgs args)
              {
            
          // Click handler for PriorityLevelMenuItemHilited.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          PriorityLevelMenuItemHilited_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void RolesMenuItem_Click(object sender, EventArgs args)
              {
            
          // Click handler for RolesMenuItem.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          RolesMenuItem_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void RolesMenuItemHilited_Click(object sender, EventArgs args)
              {
            
          // Click handler for RolesMenuItemHilited.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          RolesMenuItemHilited_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void StatusMenuItem_Click(object sender, EventArgs args)
              {
            
          // Click handler for StatusMenuItem.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          StatusMenuItem_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void StatusMenuItemHilited_Click(object sender, EventArgs args)
              {
            
          // Click handler for StatusMenuItemHilited.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          StatusMenuItemHilited_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void TaskMenuItem_Click(object sender, EventArgs args)
              {
            
          // Click handler for TaskMenuItem.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          TaskMenuItem_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void TaskMenuItemHilited_Click(object sender, EventArgs args)
              {
            
          // Click handler for TaskMenuItemHilited.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          TaskMenuItemHilited_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void TestCasesMenuItem_Click(object sender, EventArgs args)
              {
            
          // Click handler for TestCasesMenuItem.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          TestCasesMenuItem_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void TestCasesMenuItemHilited_Click(object sender, EventArgs args)
              {
            
          // Click handler for TestCasesMenuItemHilited.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          TestCasesMenuItemHilited_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void TestResultsMenuItem_Click(object sender, EventArgs args)
              {
            
          // Click handler for TestResultsMenuItem.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          TestResultsMenuItem_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void TestResultsMenuItemHilited_Click(object sender, EventArgs args)
              {
            
          // Click handler for TestResultsMenuItemHilited.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          TestResultsMenuItemHilited_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void UsersMenuItem_Click(object sender, EventArgs args)
              {
            
          // Click handler for UsersMenuItem.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          UsersMenuItem_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        
              public void UsersMenuItemHilited_Click(object sender, EventArgs args)
              {
            
          // Click handler for UsersMenuItemHilited.
          // Customize by adding code before the call or replace the call to the Base function with your own code.
          UsersMenuItemHilited_Click_Base(sender, args);
          // NOTE: If the Base function redirects to another page, any code here will not be executed.
          }
        

#endregion

#region "Section 2: Do not modify this section."
        

        private void Initialize()
        {
            // Called by the class constructor to initialize event handlers for Init and Load
            // You can customize by modifying the constructor in Section 1.
            this.Init += new EventHandler(Page_InitializeEventHandlers);
            this.Load += new EventHandler(Page_Load);

            
        }

        // Handles base.Init. Registers event handler for any button, sort or links.
        // You can add additional Init handlers in Section 1.
        protected virtual void Page_InitializeEventHandlers(object sender, System.EventArgs e)
        {
            // Register the Event handler for any Events.
        
              this.BugsSummaryMenuItem.Button.Click += new EventHandler(BugsSummaryMenuItem_Click);
              this.BugsSummaryMenuItemHilited.Button.Click += new EventHandler(BugsSummaryMenuItemHilited_Click);
              this.PriorityLevelMenuItem.Button.Click += new EventHandler(PriorityLevelMenuItem_Click);
              this.PriorityLevelMenuItemHilited.Button.Click += new EventHandler(PriorityLevelMenuItemHilited_Click);
              this.RolesMenuItem.Button.Click += new EventHandler(RolesMenuItem_Click);
              this.RolesMenuItemHilited.Button.Click += new EventHandler(RolesMenuItemHilited_Click);
              this.StatusMenuItem.Button.Click += new EventHandler(StatusMenuItem_Click);
              this.StatusMenuItemHilited.Button.Click += new EventHandler(StatusMenuItemHilited_Click);
              this.TaskMenuItem.Button.Click += new EventHandler(TaskMenuItem_Click);
              this.TaskMenuItemHilited.Button.Click += new EventHandler(TaskMenuItemHilited_Click);
              this.TestCasesMenuItem.Button.Click += new EventHandler(TestCasesMenuItem_Click);
              this.TestCasesMenuItemHilited.Button.Click += new EventHandler(TestCasesMenuItemHilited_Click);
              this.TestResultsMenuItem.Button.Click += new EventHandler(TestResultsMenuItem_Click);
              this.TestResultsMenuItemHilited.Button.Click += new EventHandler(TestResultsMenuItemHilited_Click);
              this.UsersMenuItem.Button.Click += new EventHandler(UsersMenuItem_Click);
              this.UsersMenuItemHilited.Button.Click += new EventHandler(UsersMenuItemHilited_Click);
        }

        // Handles base.Load.  Read database data and put into the UI controls.
        // You can add additional Load handlers in Section 1.
        protected virtual void Page_Load(object sender, EventArgs e)
        {
        

            // Load data only when displaying the page for the first time
            if ((!this.IsPostBack)) {   
        

        // Read the data for all controls on the page.
        // To change the behavior, override the DataBind method for the individual
        // record or table UI controls.
        this.LoadData();
    }
    }

    public static object[] GetRecordFieldValue_Base(String tableName , 
                                                    String recordID , 
                                                    String columnName, 
                                                    String title, 
                                                    bool persist, 
                                                    int popupWindowHeight, 
                                                    int popupWindowWidth, 
                                                    bool popupWindowScrollBar)
    {
        string content =  NetUtils.EncodeStringForHtmlDisplay(BaseClasses.Utils.MiscUtils.GetFieldData(tableName, recordID, columnName)) ;
        // returnValue is an array of string values.
        // returnValue(0) represents title of the pop up window.
        // returnValue(1) represents content ie, image url.
        // retrunValue(2) represents whether pop up window should be made persistant
        // or it should closes as soon as mouse moved out.
        // returnValue(3), (4) represents pop up window height and width respectivly
        // ' returnValue(5) represents whether pop up window should contain scroll bar.
        // (0),(2),(3) and (4) is initially set as pass through attribute.
        // They can be modified by going to Attribute tab of the properties window of the control in aspx page.
        object[] returnValue = new object[6];
        returnValue[0] = title;
        returnValue[1] = content;
        returnValue[2] = persist;
        returnValue[3] = popupWindowWidth;
        returnValue[4] = popupWindowHeight;
        returnValue[5] = popupWindowScrollBar;
        return returnValue;
    }

    public static object[] GetImage_Base(String tableName, 
                                          String recordID, 
                                          String columnName, 
                                          String title, 
                                          bool persist, 
                                          int popupWindowHeight, 
                                          int popupWindowWidth, 
                                          bool popupWindowScrollBar)
    {
        string  content= "<IMG src =" + "\"../Shared/ExportFieldValue.aspx?Table=" + tableName + "&Field=" + columnName + "&Record=" + recordID + "\"/>";
        // returnValue is an array of string values.
        // returnValue(0) represents title of the pop up window.
        // returnValue(1) represents content ie, image url.
        // retrunValue(2) represents whether pop up window should be made persistant
        // or it should closes as soon as mouse moved out.
        // returnValue(3), (4) represents pop up window height and width respectivly
        // returnValue(5) represents whether pop up window should contain scroll bar.
        // (0),(2),(3), (4) and (5) is initially set as pass through attribute.
        // They can be modified by going to Attribute tab of the properties window of the control in aspx page.
        object[] returnValue = new object[6];
        returnValue[0] = title;
        returnValue[1] = content;
        returnValue[2] = persist;
        returnValue[3] = popupWindowWidth;
        returnValue[4] = popupWindowHeight;
        returnValue[5] = popupWindowScrollBar;
        return returnValue;
    }
    

    // Load data from database into UI controls.
    // Modify LoadData in Section 1 above to customize.  Or override DataBind() in
    // the individual table and record controls to customize.
    public void LoadData_Base()
    {
    
        }

        // Write out event methods for the page events
        
              // event handler for Button with Layout
              public void BugsSummaryMenuItem_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../BugsSummary/ShowBugsSummaryTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void BugsSummaryMenuItemHilited_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../BugsSummary/ShowBugsSummaryTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void PriorityLevelMenuItem_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../PriorityLevel/ShowPriorityLevelTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void PriorityLevelMenuItemHilited_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../PriorityLevel/ShowPriorityLevelTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void RolesMenuItem_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../Roles/ShowRolesTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void RolesMenuItemHilited_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../Roles/ShowRolesTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void StatusMenuItem_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../Status/ShowStatusTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void StatusMenuItemHilited_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../Status/ShowStatusTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void TaskMenuItem_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../Task/ShowTaskTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void TaskMenuItemHilited_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../Task/ShowTaskTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void TestCasesMenuItem_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../TestCases/ShowTestCasesTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void TestCasesMenuItemHilited_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../TestCases/ShowTestCasesTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void TestResultsMenuItem_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../TestResults/ShowTestResultsTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void TestResultsMenuItemHilited_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../TestResults/ShowTestResultsTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void UsersMenuItem_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../Users/ShowUsersTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
              // event handler for Button with Layout
              public void UsersMenuItemHilited_Click_Base(object sender, EventArgs args)
              {
              
            string url = @"../Users/ShowUsersTablePage.aspx";
            bool shouldRedirect = true;
            string TargetKey = null;
            string DFKA = null;
            string id = null;
            string value = null;
            try {
                DbUtils.StartTransaction();
                
                url = ((BaseApplicationPage)this.Page).ModifyRedirectUrl(url, "",false);
                        ((BaseApplicationPage)this.Page).CommitTransaction(sender);
      
            } catch (Exception ex) {
                ((BaseApplicationPage)this.Page).RollBackTransaction(sender);
                shouldRedirect = false;
                ((BaseApplicationPage)this.Page).ErrorOnPage = true;
    
                BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message);
            } finally {
                DbUtils.EndTransaction();
            }
            if (shouldRedirect) {
                ((BaseApplicationPage)this.Page).Response.Redirect(url);
            }
        
              }
            
#region Interface Properties
          
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_ItemVertical BugsSummaryMenuItem {
            get {
                return this._BugsSummaryMenuItem;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_Item_HighlightedVertical BugsSummaryMenuItemHilited {
            get {
                return this._BugsSummaryMenuItemHilited;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_ItemVertical PriorityLevelMenuItem {
            get {
                return this._PriorityLevelMenuItem;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_Item_HighlightedVertical PriorityLevelMenuItemHilited {
            get {
                return this._PriorityLevelMenuItemHilited;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_ItemVertical RolesMenuItem {
            get {
                return this._RolesMenuItem;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_Item_HighlightedVertical RolesMenuItemHilited {
            get {
                return this._RolesMenuItemHilited;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_ItemVertical StatusMenuItem {
            get {
                return this._StatusMenuItem;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_Item_HighlightedVertical StatusMenuItemHilited {
            get {
                return this._StatusMenuItemHilited;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_ItemVertical TaskMenuItem {
            get {
                return this._TaskMenuItem;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_Item_HighlightedVertical TaskMenuItemHilited {
            get {
                return this._TaskMenuItemHilited;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_ItemVertical TestCasesMenuItem {
            get {
                return this._TestCasesMenuItem;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_Item_HighlightedVertical TestCasesMenuItemHilited {
            get {
                return this._TestCasesMenuItemHilited;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_ItemVertical TestResultsMenuItem {
            get {
                return this._TestResultsMenuItem;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_Item_HighlightedVertical TestResultsMenuItemHilited {
            get {
                return this._TestResultsMenuItemHilited;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_ItemVertical UsersMenuItem {
            get {
                return this._UsersMenuItem;
            }
        }
                
        [Bindable(true),
        Category("Behavior"),
        DefaultValue(""),
        NotifyParentProperty(true),
        DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IMenu_Item_HighlightedVertical UsersMenuItemHilited {
            get {
                return this._UsersMenuItemHilited;
            }
        }
                
#endregion
        
#endregion

  

}
  
}

  